

var TextNote = function( action, vars, blank )	{
	
	Object.extend(
		obj = (blank)? new Element( "div", { "class":"TextNote " + action }) : $$( '.TextNote' ).pop(), 
		TextNote[ "proto_" + action ]
	);
	
	obj.vars = vars;
	return obj.init( );	

}



// ACTION SPECIFIC PROTO'S
TextNote.proto_stick = {
	init		: function() {
		
		return this;
	},
	
	set			: function( string, trg ) {
		
		this.update( string );
		if( trg ) this.clonePosition( trg, { setWidth:false, setHeight:false, offsetTop: trg.getHeight() + 2 });
	}

}